
#pragma once

// #ifndef __AFXWIN_H__
// 	#error "include 'stdafx.h' before including this file for PCH"
// #endif

#include "resource.h"       // main symbols
//#include "ClientRoot.h"
 #include "client/ClientRoot.h"

extern int FPSLIST[12];
class CWinMFCSystem;
// CSceneBuilderApp:
// See OgreMFC.cpp for the implementation of this class
//
class CSceneBuilderApp : public CWinAppEx
{
public:
	CSceneBuilderApp();
	~CSceneBuilderApp();

// Overrides
public:
	virtual BOOL InitInstance();

// Implementation

public:
	UINT  m_nAppLook;
	UINT  m_FPSID;
	UINT  m_FPSTimer;
	BOOL  m_bHiColorIcons;
	unsigned int          m_LastTime;
//     Ogre::Root           *m_OgreRoot;
	Apo::ClientRoot      *m_OgitorsRoot;
    CWinMFCSystem        *m_System;

	//inline Ogre::Root *GetOgreRoot() {return m_OgreRoot;}	
	
	virtual void PreLoadState();
	virtual void LoadCustomState();
	virtual void SaveCustomState();

	virtual BOOL OnIdle(LONG lCount);
	afx_msg void OnAppAbout();
	DECLARE_MESSAGE_MAP()
};

extern CSceneBuilderApp theApp;
